using System;
using System.Collections.Generic;
using System.Text;
using SlimDX;
using Barrage.Global;

namespace Barrage.Elements.Cameras
{
    /// <summary>
    /// BasicCamera is a camera instance with perspective and a fixed position(10,10,10), looking to the world origin
    /// </summary>
    public class BasicCamera:Camera
    {
        /// <summary>
        /// \internal The position is always 10,10,10
        /// </summary>
        public override Vector3 Position { get { return new Vector3(10, 10, 10); } }

        /// <summary>
        /// Inits motion matrices
        /// </summary>
        public BasicCamera()
        {
            projection = Matrix.PerspectiveFovLH((float)System.Math.PI/4, Engine.Instance.WindowWidth/(float)Engine.Instance.WindowHeight, 0.01f, 1000);
            motion.Matrix = Matrix.LookAtLH(new Vector3(10, 10, 10), Vector3.Zero, Vector3.UnitY);
        }
    }
}
